<div class="bdcrumb"><?echo $this->breadcrumb->output(); ?></div>
<div class="ds-sanpham">
    <h2 class="cat-name"><?= $pname;?></h2>
    <div class="desc">
        <select class="SapXep" onChange="window.location='<?= base_url(); ?>danh-muc/<?= $p->c_slug;?>-<?=$p->PID;?>/'+this.value;">
            <option value="">-Sắp xếp theo-</option>
            <option value="desc" <? if($sx == "desc") echo "selected"; ?>>Giá giảm dần</option>
            <option value="asc" <? if($sx == "asc") echo "selected"; ?>>Giá tăng dần</option>
        </select>
    </div>
    <? if ($p_from_cat > 0): ?>
        <? foreach ($p_from_cat as $row): ?>
            <div class="box">
                <div class="ProductCells">
                    <a href="<? echo site_url('chi-tiet/' . $row->FSlug.'-'.$row->FID); ?>"><img src="<? echo base_url(); ?>images/sanpham/<?= $row->FPicture ?>" width="170" height="199"/></a>
                    <div class="text"><?= $row->FName ?></div>
                    <div class="price"><?= format_price($row->FPrice,'đ')   ?></div>
                </div>
            </div>
        <? endforeach; ?>
        <div class="phan_trang"><? echo $page; ?></div>
    <? else: ?>
        <p>Sản phẩm đang cập nhật</p>
    <? endif; ?>
</div>